<template>
    <el-dialog
      v-model="delDialog"
      title="温馨提示"
      width="30%"
    >
      <span>确定删除吗</span>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="delDialog = false">取消</el-button>
          <el-button type="primary" @click="$emit('certainDel')">
            确定
          </el-button>
        </span>
      </template>
    </el-dialog>
  </template>
  
  <script setup>
  import { ref } from 'vue'
  
  //定义接收参数
const delDialog = ref(false)
const delItem = ()=>{
}
//暴露出去的是否显示弹窗
defineExpose({
    delDialog,
    delItem
})

  </script>
  <style scoped>
  .dialog-footer button:first-child {
    margin-right: 10px;
  }
  </style>
  